package com.boot.web;

import com.boot.service.FiveService;
import com.boot.util.JsonUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pan zhang
 *
 *
 * */

@RestController
@RequestMapping(value = "/5")
public class ScreenFifthController {


    @Autowired
    private FiveService fiveService;


    @GetMapping("1")
    public String getData1() {

        return JsonUtil.serialize(fiveService.getComplaints());

    }

    @GetMapping("2")
    public String getData2() {

        return JsonUtil.serialize(fiveService.getAcceptanceZones());

    }

    @GetMapping("3")
    public String getData3() {

        return JsonUtil.serialize(fiveService.getMoreAcceptances());

    }

    @GetMapping("4")
    public String getData4() {

        return JsonUtil.serialize(fiveService.getSupervisionLaw());

    }

    @GetMapping("5")
    public String getData5() {

        return JsonUtil.serialize(fiveService.getSupervisionLawZones());

    }

    @GetMapping("6")
    public String getData6() {

        return JsonUtil.serialize(fiveService.getMarketCapabilitys());

    }


}